package com.yxym.wrapper;

public class WrapperExercise01 {
    public static void main(String[] args) {
        Double d = 100d;//自动装箱Double.valuesOf(100d)
        Float f = 1.5f;
        Object obj1 = true?new Integer(1):new Double(2.0);
        System.out.println(obj1);//1.0三元运算符是个整体，继承优先级较高的
        Object obj2;
        if(true)
            obj2 = new Integer(1);
        else
            obj2 = new Double(2.0);
        System.out.println(obj2);//1

    }
}
